package com.itheima.service;

import com.itheima.pojo.Dish;
import com.itheima.pojo.ShoppingCart;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @Author: 放学后海堤日记
 * @Date: 2023/4/15 10:30
 * @Desc: 购物车管理业务接口
 */
public interface ShoppingCartService {
    /**
     * 查询购物车列表
     * @return
     */
    List<ShoppingCart> listAll(HttpServletRequest request);

    /**
     * 添加购物车
     * @param shoppingCart
     * @return
     */
    void addShoppingCart(ShoppingCart shoppingCart);

    /**
     * 清空购物车
     */
    void clearShoppingCart();

    /**
     * 删除购物车数据
     * @param shoppingCart
     */
    void subShoppingCart(ShoppingCart shoppingCart);
}
